﻿using System.Threading.Tasks;
using SmartCity.Shared;
using Volo.Abp.Application.Services;

namespace CommonManagement
{
    /// <summary>
    /// 新闻应用服务接口
    /// </summary>
    public interface IPressAppService : IApplicationService
    {
        /// <summary>
        /// 分页列表
        /// </summary>
        /// <param name="request"></param>
        /// <param name="hot"></param>
        /// <param name="publishDate"></param>
        /// <param name="title"></param>
        /// <param name="top"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        Task<ListResponse<PressDto>> PagedListAsync(PagedListRequest request,
            string hot = null,
            string publishDate = null,
            string title = null,
            string top = null,
            string type = null);

        /// <summary>
        /// 详情
        /// </summary>
        /// <param name="id"></param>
        Task<ResultResponse<PressDto>> GetAsync(int id);

        /// <summary>
        /// 点赞
        /// </summary>
        /// <param name="id"></param>
        Task<ActionResponse> LikeAsync(int id);
    }
}